package com.moblie.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.moblie.dao.CategoryDao;
import com.moblie.domain.ContentCategory;
import com.moblie.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service(interfaceClass = CategoryService.class)
@Transactional
public class CategoryServiceImpl implements CategoryService {
    @Autowired
    private CategoryDao categoryDao;
    @Override
    public List<ContentCategory> findAll() {
//       分类信息的数据查询,查询出来的信息都是通过排序了的
        List<ContentCategory> list=categoryDao.findAll();
        return list;
    }
}
